package com.gepengjun.lims.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.gepengjun.lims.entity.Orgnazation;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jun
 * @since 2018-08-19
 */
public interface OrgnazationService extends IService<Orgnazation> {

    List<Orgnazation> findAllAvailableCompany();

    List<Orgnazation> initDeptList(Long orgId);

    List<Orgnazation> findAllAvailableDept();

    Orgnazation findDeptByUserId(Long userId);

    Page<Orgnazation> findOrgnazationPage(Page<Orgnazation> page,Orgnazation orgnazation);

    List<Orgnazation> initParent(List<Orgnazation> orgnazationList);

    List<Orgnazation> initChildren(List<Orgnazation> orgnazationList);

    List<Orgnazation> findAllAvailableOrgnazation();

    Boolean disableOrg(Orgnazation orgnazation);

    Boolean ableOrg(Orgnazation orgnazation);

    boolean batchDisableOrgs(List<Long> orgIdList);

    boolean batchAbleOrgs(List<Long> orgIdList);
}
